import {SAVE_END_POINT_SETTING, SAVE_RFU_RESULT} from "./constants";

const defaultState = {
  endPointSetting: [],
  rfuResult: []
};

function reducer(state = defaultState, action) {
  switch (action.type) {
    case SAVE_END_POINT_SETTING :
      return {...state, endPointSetting: action.endPointSetting};
    case SAVE_RFU_RESULT :
      return {...state, rfuResult: action.rfuResult};
    default:
      return state;
  }
}

export default reducer;
